<?php
/**
 * Magento
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Academic Free License (AFL 3.0)
 * that is bundled with this package in the file LICENSE_AFL.txt.
 * It is also available through the world-wide-web at this URL:
 * http://opensource.org/licenses/afl-3.0.php
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@magentocommerce.com so we can send you a copy immediately.
 *
 * DISCLAIMER
 *
 * Do not edit or add to this file if you wish to upgrade Magento to newer
 * versions in the future. If you wish to customize Magento for your
 * needs please refer to http://www.magentocommerce.com for more information.
 *
 * @category   design_default
 * @package    Mage
 * @copyright  Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
 * @license    http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
 */
?>
<?php 
/**
 * Customer login form template
 * 
 * @see Mage_Customer_Block_Form_Login
 */
?>
<div class="login-box">
<div class="category-head"><h2><?php echo $this->__('Login or Create an Account') ?></h2></div>
<?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
<form action="<?php echo $this->getPostActionUrl() ?>" method="post" id="login-form">
    <div class="registered-users">
        <div class="content">
            <h4><?php echo $this->__('Registered Customers') ?></h4>
            <p><?php echo $this->__('If you have an account with us, please log in.') ?></p>
            <ul class="form-list">
                <li>
                    <div class="col2-alt-set">
                        <div class="col-1">
                            <label for="email"><?php echo $this->__('Email Address') ?> <span class="required">*</span></label>
                        </div>
                        <div class="col-2">
                            <input name="login[username]" value="<?php echo $this->htmlEscape($this->getUsername()) ?>" title="<?php echo $this->__('Email Address') ?>" id="email" type="text" class="input-text required-entry" />
                        </div>
                    </div><div class="clear"></div>
                </li>
                <li>
                    <div class="col2-alt-set">
                        <div class="col-1">
                            <label for="pass"><?php echo $this->__('Password') ?> <span class="required">*</span></label><br />
                        </div>
                        <div class="col-2">
                            <input name="login[password]" type="password" class="input-text required-entry validate-password" id="pass" />
                        </div>
                    </div><div class="clear"></div>
                </li>
            </ul>
        </div>
        <div class="col2-alt-set button-set">
            <div class="col-1">
                <p class="required"><?php echo $this->__('* Required Fields') ?></p>
            </div>
            <div class="col-2">
                <div class="form-buttons">
                    <button class="form-button" type="submit" name="send" id="send2"><span><?php echo $this->__('Login') ?></span></button><br />
                    <a href="<?php echo $this->getForgotPasswordUrl() ?>" class="left"><?php echo $this->__('Forgot Your Password?') ?></a>
                </div>
            </div>
        </div><div class="clear"></div>
    </div>
    <div class="new-users">
        <div class="content">
            <h4><?php echo $this->__('New Customers') ?></h4>
            <p><?php echo $this->__('By creating an account with our store, you will be able to move through the checkout process faster, store multiple shipping addresses, view and track your orders in your account and more.') ?></p>
        </div>
        <div class="button-set">
            <button class="form-button right" onclick="window.location='<?php echo $this->getCreateAccountUrl() ?>';" type="button"><span><?php echo $this->__('Create an Account') ?></span></button>
        </div>
    </div>
</form>
</div>
<script type="text/javascript">
    var dataForm = new VarienForm('login-form', true);
</script>